import VueI18n from 'vue-i18n'
import Vue from 'vue'
import { getLocalStorage } from '../utils/storage'
Vue.use(VueI18n)

const i18n = new VueI18n({
    locale:getLocalStorage('lang') == '1'? 'zh' : 'jp',
    messages: {
        'jp' : require('./lang/jp'),
        'zh' : require('./lang/zh'),
    }
})
export default i18n